<template>
  <el-container>
    <el-aside width="auto">
      <nav-side :collapse="iscollapse"></nav-side>
    </el-aside>
    <el-container>
      <el-header>
        <nav-header v-model:collapse="iscollapse"></nav-header>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import NavHeader from './NavHeader.vue'
import NavSide from './NavSide.vue'
let iscollapse = ref(false)
</script>

<style lang="scss" scoped>
.icon {
  width: 1em; 
  height: 1em; 
  margin-right: 10px;
}
.el-header{
  padding: 0;
  border-bottom: 1px solid #DDD;
}
.el-main{
  background-color: #d7d5dfbe ;
  height: calc(100vh - 60px);
}
</style>